package com.coderush.admin.sys.service;

import com.coderush.admin.core.common.PageResult;
import com.coderush.admin.sys.model.dto.DepartmentAddDto;
import com.coderush.admin.sys.model.dto.DepartmentUpdateDto;
import com.coderush.admin.sys.model.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import com.coderush.admin.sys.model.vo.DepartmentPageVo;
import com.coderush.admin.sys.model.vo.DepartmentVo;

/**
* @author Administrator
* @description 针对表【sys_department(部门表)】的数据库操作Service
* @createDate 2025-08-25 11:11:32
*/
public interface DepartmentService extends IService<Department> {

    /**
     * 分页查询
     */
    PageResult<DepartmentPageVo> findByPage(String deptName, Integer pageNum, Integer pageSize);

    /**
     * 根据id查询 部门
     */
    DepartmentVo getById(Long id);

    /**
     * 修改 部门
     */
    Boolean update(DepartmentUpdateDto updateDto);

    /**
     * 添加 部门
     */
    Boolean add(DepartmentAddDto addDto);
}
